<?php
namespace app\api\model;

use think\Model;

class Postdatadb extends Model
{

    protected $pk = 'post_id';

    protected $name = 'postdata';

    public $param = array();

    public function ajaxSave()
    {
        $data['post_json'] = json_encode($this->param['post_json']);
        $data['post_url'] = $this->param['post_url'];
        $this->allowField(true)->save($data);
    }
}